package org.dizem.minichat.model;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.dizem.minichat.Constants;
import org.dizem.minichat.service.ServerMonitor;

import java.util.*;

/**
 * User: DIZEM
 * Time: 11-3-26 上午9:39
 */
public class Server {
	private Logger log = Logger.getLogger(Server.class);
	private Map<Integer, User> userOnline = new HashMap<Integer, User>();

	public Server() {
		new ServerMonitor(this).start();
	}

	public static void main(String[] args) {
		PropertyConfigurator.configure(Constants.LOG4J_CONFIG_PATH);
		new Server();
	}

	
}
